﻿using ProtoBuf.Message;
using System;
using System.Collections.Generic;
using Dict.DataModel;
using Dict.Blo;

namespace UI
{
    /// <summary>
    /// 道具
    /// </summary>
    public class UISimpleItem
    {
        public TableItem itemData;

        public long num;


        public UISimpleItem(TableItem data)
        {
            itemData = data;
            num = 0;
        }

        public void InitData(SimpleItem data)
        {
            itemData = DictItemBlo.GetTableItem(data.id);
            num = data.num;
        }

        public UISimpleItem Clone()
        {

            UISimpleItem temp = new UISimpleItem(itemData);
            temp.num = num;
            return temp;
        }
    }
}
